package com.lill.product.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.lill.common.component.util.IdUtil;
import com.lill.product.dao.IStorageClassifyDao;
import com.lill.product.model.StorageClassifyModel;
import com.lill.product.service.IStorageClassifyService;

/**
 * 仓库分类Service实现类
 *
 * @author lill
 * @date 2021-08-30 09:53:28
 */
@Service("com.lill.product.service.impl.StorageClassifyServiceImpl")
public class StorageClassifyServiceImpl implements IStorageClassifyService {
	
    @Autowired
    private IStorageClassifyDao storageClassifyDao;

    public StorageClassifyModel queryObject(String id) {
        return storageClassifyDao.queryObject(id);
    }

    public List<StorageClassifyModel> queryList(Map<String, Object> map) {
        return storageClassifyDao.queryList(map);
    }

    public int queryTotal(Map<String, Object> map) {
        return storageClassifyDao.queryTotal(map);
    }

    public int save(StorageClassifyModel storageClassify) {
        storageClassify.setId(IdUtil.createIdbyUUID());
        return storageClassifyDao.save(storageClassify);	
    }

    public int update(StorageClassifyModel storageClassify) {
        return storageClassifyDao.update(storageClassify);
    }

    
	public int deleteLogicByMap(Map<String, Object> map) {
		return storageClassifyDao.deleteLogicByMap(map);
	}
}
